-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix needs saving mark 2 - for #576 #658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix needs saving mark 2 - for #576 #658
Conversation
yeah this is looking great! the only suggestion i have is to remove all of the commented out code. |
…e back into component state.
Thanks @catarak - I've completed the changes for One question I had, which you can maybe advise on: Should I be binding the event handlers I've added to the This appears to work fine on my local installation and solves the problem of the needs saving mark not being removed. |
Yes! The event handlers should be bound to |
@catarak - great! I actually did do that in the latest changes, so I think that means that this PR is complete and will leave it from you for here. |
this looks great! i noticed a bug, which is if you rename a file, it doesn't save the sketch, or mark it as unsaved. i think that when you rename a file, the sketch should save. |
@catarak Is this PR just waiting for a fix to this last bug?
|
@bendman yes! feel free to pick up and fix. i don't think it makes sense to merge this in as it is now since the bug i found is a regression. |
@catarak I'm working on this one now, but I'm not understanding how to reproduce the regressive bug. Right now on the live site I also see the bug where renaming a file doesn't save the sketch or mark it as unsaved. This happens on the live site and this branch for me: If I rename a file, it doesn't save it or mark it as unsaved. If I reload the project, the file will have the original name. The existing behavior is kind of weird though. Should I try to include a fix in this branch by saving the project once a file is renamed? |
@bendman you're right! i think i was mixed up since when you change the sketch name, the sketch automatically saves, and now i'm wondering if that should be the same behavior for files, or if the sketch should set its state to having unsaved changes. i'll put this in a separate ticket. let me take a second pass at this PR and see if there are any other changes to be made, otherwise i will actually merge it in. |
just tested again, and this is working great. hopefully this also fixes #675. going to merge this! |
Before your pull request is reviewed and merged, please ensure that:
npm run lint
Fixes #123
This is a work in progress pull request to address #576 based on advice from @catarak and @shinytang6 on my previous pull request (#652).
I am trying to move the properties
isOptionsOpen
andisEditingName
to be stored as state in theFileNode
component, rather than going into the Redux state. This PR just does this forisOptionsOpen
. I want to check that I'm on the right track and am not doing anything too heinous...